﻿

using System;
using System.IO;
using System.ServiceModel;


namespace WCFContract
{
    /// <summary>
    /// 文件操作 接口 --WCF分布式开发技术讲座_7_大数据传输和Streaming流处理
    /// </summary>
    [ServiceContract]
    public interface IFileOpeator
    {
        /// <summary>
        /// 上传文件
        /// </summary>
        /// <param name="fileName">文件名称</param>
        /// <param name="stream">文件内存流</param>
        ///[OperationContract(IsOneWay=true)]
        [OperationContract]
        void UpLoadFile(string fileName,MemoryStream stream);

        /// <summary>
        /// 下载文件
        /// </summary>
        /// <param name="fileName">文件名称</param>
        /// <returns>文件流</returns>
        [OperationContract]
        void DownLoadFile(out MemoryStream stream, string fileName);
    }
}
